# Copyright (c) 2011 SameGoal LLC.
# All Rights Reserved.
# Author: Andy Hochhaus <ahochhaus@samegoal.com>

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

{
  'targets': [
    {
      'target_name': 'comet',
      'type': '<(library)',
      'include_dirs': [
        '../../../..',
      ],
      'dependencies': [
        'comet_proto',
        '../event/event_server.gyp:event_server',
        '../../headers/headers.gyp:net_http_headers_helper',
        '../../../../base/base.gyp:base',
        '../../../../base/base.gyp:string',
        '../../../../base/thread/thread.gyp:mutex',
        '../../../../third_party/google-glog/glog.gyp:glog',
        '../../../../third_party/gflags/gflags.gyp:gflags',
        '../../../../third_party/libcxx/libcxx.gyp:libcxx',
        '../../../../third_party/libevent/libevent.gyp:libevent',
        '../../../../third_party/openssl/openssl.gyp:openssl',
        '../../../../third_party/re2/re2.gyp:re2',
      ],
      'sources': [
        'comet.cc',
        'json.cc',
        'proxy_detect.cc',
        'proxy_detect_manager.cc',
        'request_helper.cc',
        'session.cc',
        'session_manager.cc',
        'timer_wrapper.cc',
      ],
    },
    {
      'target_name': 'comet_proto',
      'type': '<(library)',
      'dependencies': [
        '../../../../third_party/libcxx/libcxx.gyp:libcxx',
        '../../../../third_party/protobuf/protobuf.gyp:protoc#host',
      ],
      'sources': [
        'session_buffer.proto',
      ],
    },
  ],
}
